<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>宿舍管理首页</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  	<link href="css/index.css" rel="stylesheet" type="text/css">
  </head>
  
  <body>
  	<div class="top">
  		<div class="top1">
  			<div class="login">
  				<a href="login.action" class="login_picture"></a>
  			</div>
  		</div>
  	</div>
    <div class="png">
	 	<div class="page"> 
	    	<div class="page1">
	    		<div class="page_title"><a href="queryTrends.action?page=0&param=backward">动态</a></div>
	    		<div class="page_list">
		         	<dl>	
		         		<s:iterator value="shTrendsList">	         		
		         			<dt><a href="queryTrendsById.action?no=${tid}"><s:property value="ttitle" /></a></dt>
		         			<dd>[<s:property value="ttime.toString().substring(0,10)" />]</dd>
		         		</s:iterator>
		         	</dl>
	         	</div>
	      	</div>
            <div class="page1">
	         	<div class="page_title"><a href="queryMessage.action?page=0&param=backward">留言板</a></div>
	    		<div class="page_list">
		         	<dl>
		         		<s:iterator value="shMessageList">	         		
		         			<dt><a href="queryMessageById.action?no=${mid}"><s:property value="mtitle" /></a></dt>
		         			<dd>[<s:property value="mtime.toString().substring(0,10)" />]</dd>
		         		</s:iterator>
		         	</dl>
	         	</div>
	      	</div>
            <div class="page2">
	         	<div class="page_title">优秀宿舍</div>
	         	<div class="page_list">
		         	<dl>
		         		<s:iterator value="shPointList">	         		
		         			<dt><s:property value="park2" /><s:property value="park1" /></dt>
		         			<dd><s:property value="pgrade" /></dd>
		         		</s:iterator>
		         	</dl>
	         	</div>
	      	</div>
            <div class="page2">
	         	<div class="page_title"><a href="advancedQuery.action">图表统计</a></div>
	         	<div class="page2_chart"></div>
	      	</div>
	    </div>
        <div class="page">
        	<div class="bottom">
        		<div class="bottom1"></div>
        		<div class="bottom2">
        			<div class="bottom4">
        				版权所有&nbsp;&copy;2013 Xi MengDong. All Rights Reserved.
        			</div>
        		</div>
        		<div class="bottom3"></div>
        	</div>
        </div>
    </div>
  </body>
</html>
